/**
 * Created by wutianchi on 2015/11/11.
 */
window.onload = function() {
    var swiper = new Swiper('#swiper1', {
        loop: true,
        pagination: '.swiper-pagination',
        paginationClickable: true,
        autoplay: 2500
    });
    var swiper1 = new Swiper ('#swiper2', {
        loop: true,
        nextButton: '.swiper-button-next',
        prevButton: '.swiper-button-prev'
    })
};
$(document).ready(function(){
    $(".nav-phone-img").hide();
    $(".nav-phone").hover(function(){
        $(".nav-phone-img").fadeToggle();
    });

    $(".erweima-img").hide();
    $(".erweima").hover(function(){
        $(".erweima-img").fadeToggle();
    });

});
function showBg() {
    var bh = $("body").height();
    var bw = $("body").width();
    $("#fullbg").css({
        height:bh,
        width:bw,
        display:"block"
    });
    document.body.style.height="100%";document.body.style.overflow="hidden";
    $("#dialog").show();
}
//关闭灰色 jQuery 遮罩
function closeBg() {
    $("#fullbg,#dialog").hide();
    document.body.style.height="";document.body.style.overflow="";
}

